package cn.iocoder.yudao.module.scrm.controller.admin.customer.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author LiZhiMin
 * @Date 2024/10/18 15:02
 */
@Schema(description = "管理后台 - SCRM 修改|删除|客户库|规则--自动解锁旧的客户 VO")
@Data
@Builder
public class CustomerAutoUnlockVO {
    @Schema(description = "客户库id----删除客户库要传|修改客户库要传，删除规则|修改规则也要传")
    private Integer repositoryId;

    @Schema(description = "客户库中的规则id-- 删除规则要传|修改规则要传")
    private Integer repositoryRuleId;

    @Schema(description = "更新后的部门范围id", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
    private List<Long> newDeptIds;

    @NotNull(message = "类型不能为空")
    @Schema(description = "获取类型--0是客户库 1是客户库中的规则")
    private Integer type;

    @NotNull(message = "删除或者修改类型不能为空")
    @Schema(description = "操作类型--0是新增规则，1删除规则，2修改规则，3删除客户库")
    private Integer operationType;

    @Schema(description = "新的允许锁定的数量")
    private Integer newCustomerCountLock;
}
